import  requests  from "@utils/request";
import { RcFile } from "antd/lib/upload";
import type { ReqAddshopSetParams, ReqShopSetListParams, ReqShopSetListResponse } from "./model/shopSetTypes";

export function reqGetShopSetList({page,limit}:ReqShopSetListParams){
    return requests.get<any,ReqShopSetListResponse>(`/admin/product/baseTrademark/${page}/${limit}`)
}

export function reqGetShopSetItem(shopSet:ReqAddshopSetParams){
    return requests.post<any,null>("/admin/product/baseTrademark/save",shopSet)
}

export  function getBase64(arg0: RcFile, arg1: (url: any) => void) {
    throw new Error("Function not implemented.");
  }

export function reqRemoveShopSet(id:number){
    return requests.delete<any,null>(`/admin/product/baseTrademark/remove/${id}`)
}

export function reqChangeShopSet(shopSet:ReqAddshopSetParams){
    return requests.put<any,null>("/admin/product/baseTrademark/update",shopSet)
}